Trilium Web Clipper is a web browser extension which allows user to clip text, screenshots, whole pages and short notes and save them directly to Trilium Notes.

Supported browsers

Trilium Web Clipper officially supports the following web browsers:

Obtaining the extension

The extension is available from the official browser web stores:

Functionality

The popup

Clicking the extension's button in the browser toolbar opens its popup:

Location of clippings

Trilium will save these clippings as a new child note under a "clipper inbox" note.

By default, that's the Day Notes but you can override that by setting the label clipperInbox, on any other note.

Further clippings of the same kind from the same page are added to the note created by the first one, even on a later day or after that note was moved out of the clipper inbox. The note stays where it is and is not cloned back into the inbox.

Embedded videos

A YouTube video embedded in a clipped page is saved as a Link Previews embed, with the video's title and thumbnail. As with a link preview added in the editor, the video plays only when clicked. Other embedded content (such as videos from other websites) is not saved.

The popup's preview shows each such video as a chip with the YouTube icon and the video's short link, and leaves out the embedded content that will not be saved.

Keyboard shortcuts

Keyboard shortcuts are available for most functions:

To set custom shortcuts, follow the directions for your browser.

Configuration

The extension needs to connect to a running Trilium instance. By default, it looks for the desktop application on port 37840 of the local computer. If the desktop application runs on a different port (for example because it was started with the TRILIUM_PORT environment variable), enter that port in the extension's options. The extension checks for Trilium again every minute, or right away when pressing the refresh button at the bottom of its popup.

It's also possible to configure the server address if you don't run the desktop application, or want it to work without the desktop application running.

To connect to a server, enter its address and your password in the extension's options and press Login to the server instance. If the server uses multi-factor authentication, also fill in Authentication code with the current code from your authenticator app (or one of your recovery codes); otherwise leave it empty. The password and the code are used only once, to obtain a token for the extension, and are not stored.

When a clipping fails

After each clipping, a notification in the corner of the page confirms that it was saved, with a link to open the new note in Trilium. If the clipping could not be saved, the notification says why instead:

The extension downloads the images of a clipping itself, so that they are stored in Trilium together with the note. If some of them cannot be downloaded (for example because the website refuses the request), the clipping is still saved, and the notification says how many images are missing. Those images keep their address on the original website: Trilium tries to download them once more if Download images automatically is enabled in Options → Media, and otherwise the note shows them from the website for as long as it serves them.

The notification is shown on the page itself, so it does not appear on pages where extensions cannot run (such as the browser's own settings pages and the extension stores).

Testing development versions

Development versions are version pre-release versions, generally meant for testing purposes. These are not available in the Google or Firefox web stores, but can be downloaded from either:

 Chrome

  1. Download trilium-web-clipper-[x.y.z]-chrome.zip.
  2. Extract the archive.
  3. In Chrome, navigate to chrome://extensions/
  4. Toggle Developer Mode in top-right of the page.
  5. Press the Load unpacked button near the header.
  6. Point to the extracted directory from step (2).

 Firefox

  1. Navigate to about:addons.
  2. Select Extensions in the left-side navigation.
  3. Press the Gear icon on the right of the Manage Your Extensions title.
  4. Select Install Add-on From File…
  5. Point it to trilium-web-clipper-[x.y.z]-firefox.zip.
  6. Press the Add button to confirm.

Credits

Some parts of the code are based on the Joplin Notes browser extension.